
ip1 = map(int, '132.214.105.51'.split('.'))

ip2 = map(int, '132.214.105.0'.split('.'))


ip1 = [f'{ip:b}'.rjust(8, '0') for ip in ip1]
ip2 = [f'{ip:b}'.rjust(8, '0') for ip in ip2]


print('узел =', *ip1)
print('сеть =', *ip2)


#маска = 11111111 11111111 11111111 11000000
# узел = 10000100 11010110 01101001 00110011
# сеть = 10000100 11010110 01101001 00000000


# маска =   255     155       255      192


#ответ 192